package com.jhgk.jhcee.auth.model;

import java.util.ArrayList;
import java.util.List;

public class ParameterMaximumExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ParameterMaximumExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidIsNull() {
            addCriterion("province_uuid is null");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidIsNotNull() {
            addCriterion("province_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidEqualTo(String value) {
            addCriterion("province_uuid =", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidNotEqualTo(String value) {
            addCriterion("province_uuid <>", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidGreaterThan(String value) {
            addCriterion("province_uuid >", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidGreaterThanOrEqualTo(String value) {
            addCriterion("province_uuid >=", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidLessThan(String value) {
            addCriterion("province_uuid <", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidLessThanOrEqualTo(String value) {
            addCriterion("province_uuid <=", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidLike(String value) {
            addCriterion("province_uuid like", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidNotLike(String value) {
            addCriterion("province_uuid not like", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidIn(List<String> values) {
            addCriterion("province_uuid in", values, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidNotIn(List<String> values) {
            addCriterion("province_uuid not in", values, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidBetween(String value1, String value2) {
            addCriterion("province_uuid between", value1, value2, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidNotBetween(String value1, String value2) {
            addCriterion("province_uuid not between", value1, value2, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceNameIsNull() {
            addCriterion("province_name is null");
            return (Criteria) this;
        }

        public Criteria andProvinceNameIsNotNull() {
            addCriterion("province_name is not null");
            return (Criteria) this;
        }

        public Criteria andProvinceNameEqualTo(String value) {
            addCriterion("province_name =", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameNotEqualTo(String value) {
            addCriterion("province_name <>", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameGreaterThan(String value) {
            addCriterion("province_name >", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameGreaterThanOrEqualTo(String value) {
            addCriterion("province_name >=", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameLessThan(String value) {
            addCriterion("province_name <", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameLessThanOrEqualTo(String value) {
            addCriterion("province_name <=", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameLike(String value) {
            addCriterion("province_name like", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameNotLike(String value) {
            addCriterion("province_name not like", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameIn(List<String> values) {
            addCriterion("province_name in", values, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameNotIn(List<String> values) {
            addCriterion("province_name not in", values, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameBetween(String value1, String value2) {
            addCriterion("province_name between", value1, value2, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameNotBetween(String value1, String value2) {
            addCriterion("province_name not between", value1, value2, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceModifyIsNull() {
            addCriterion("province_modify is null");
            return (Criteria) this;
        }

        public Criteria andProvinceModifyIsNotNull() {
            addCriterion("province_modify is not null");
            return (Criteria) this;
        }

        public Criteria andProvinceModifyEqualTo(Integer value) {
            addCriterion("province_modify =", value, "provinceModify");
            return (Criteria) this;
        }

        public Criteria andProvinceModifyNotEqualTo(Integer value) {
            addCriterion("province_modify <>", value, "provinceModify");
            return (Criteria) this;
        }

        public Criteria andProvinceModifyGreaterThan(Integer value) {
            addCriterion("province_modify >", value, "provinceModify");
            return (Criteria) this;
        }

        public Criteria andProvinceModifyGreaterThanOrEqualTo(Integer value) {
            addCriterion("province_modify >=", value, "provinceModify");
            return (Criteria) this;
        }

        public Criteria andProvinceModifyLessThan(Integer value) {
            addCriterion("province_modify <", value, "provinceModify");
            return (Criteria) this;
        }

        public Criteria andProvinceModifyLessThanOrEqualTo(Integer value) {
            addCriterion("province_modify <=", value, "provinceModify");
            return (Criteria) this;
        }

        public Criteria andProvinceModifyIn(List<Integer> values) {
            addCriterion("province_modify in", values, "provinceModify");
            return (Criteria) this;
        }

        public Criteria andProvinceModifyNotIn(List<Integer> values) {
            addCriterion("province_modify not in", values, "provinceModify");
            return (Criteria) this;
        }

        public Criteria andProvinceModifyBetween(Integer value1, Integer value2) {
            addCriterion("province_modify between", value1, value2, "provinceModify");
            return (Criteria) this;
        }

        public Criteria andProvinceModifyNotBetween(Integer value1, Integer value2) {
            addCriterion("province_modify not between", value1, value2, "provinceModify");
            return (Criteria) this;
        }

        public Criteria andRecordCreateIsNull() {
            addCriterion("record_create is null");
            return (Criteria) this;
        }

        public Criteria andRecordCreateIsNotNull() {
            addCriterion("record_create is not null");
            return (Criteria) this;
        }

        public Criteria andRecordCreateEqualTo(Integer value) {
            addCriterion("record_create =", value, "recordCreate");
            return (Criteria) this;
        }

        public Criteria andRecordCreateNotEqualTo(Integer value) {
            addCriterion("record_create <>", value, "recordCreate");
            return (Criteria) this;
        }

        public Criteria andRecordCreateGreaterThan(Integer value) {
            addCriterion("record_create >", value, "recordCreate");
            return (Criteria) this;
        }

        public Criteria andRecordCreateGreaterThanOrEqualTo(Integer value) {
            addCriterion("record_create >=", value, "recordCreate");
            return (Criteria) this;
        }

        public Criteria andRecordCreateLessThan(Integer value) {
            addCriterion("record_create <", value, "recordCreate");
            return (Criteria) this;
        }

        public Criteria andRecordCreateLessThanOrEqualTo(Integer value) {
            addCriterion("record_create <=", value, "recordCreate");
            return (Criteria) this;
        }

        public Criteria andRecordCreateIn(List<Integer> values) {
            addCriterion("record_create in", values, "recordCreate");
            return (Criteria) this;
        }

        public Criteria andRecordCreateNotIn(List<Integer> values) {
            addCriterion("record_create not in", values, "recordCreate");
            return (Criteria) this;
        }

        public Criteria andRecordCreateBetween(Integer value1, Integer value2) {
            addCriterion("record_create between", value1, value2, "recordCreate");
            return (Criteria) this;
        }

        public Criteria andRecordCreateNotBetween(Integer value1, Integer value2) {
            addCriterion("record_create not between", value1, value2, "recordCreate");
            return (Criteria) this;
        }

        public Criteria andRecordModifyIsNull() {
            addCriterion("record_modify is null");
            return (Criteria) this;
        }

        public Criteria andRecordModifyIsNotNull() {
            addCriterion("record_modify is not null");
            return (Criteria) this;
        }

        public Criteria andRecordModifyEqualTo(Integer value) {
            addCriterion("record_modify =", value, "recordModify");
            return (Criteria) this;
        }

        public Criteria andRecordModifyNotEqualTo(Integer value) {
            addCriterion("record_modify <>", value, "recordModify");
            return (Criteria) this;
        }

        public Criteria andRecordModifyGreaterThan(Integer value) {
            addCriterion("record_modify >", value, "recordModify");
            return (Criteria) this;
        }

        public Criteria andRecordModifyGreaterThanOrEqualTo(Integer value) {
            addCriterion("record_modify >=", value, "recordModify");
            return (Criteria) this;
        }

        public Criteria andRecordModifyLessThan(Integer value) {
            addCriterion("record_modify <", value, "recordModify");
            return (Criteria) this;
        }

        public Criteria andRecordModifyLessThanOrEqualTo(Integer value) {
            addCriterion("record_modify <=", value, "recordModify");
            return (Criteria) this;
        }

        public Criteria andRecordModifyIn(List<Integer> values) {
            addCriterion("record_modify in", values, "recordModify");
            return (Criteria) this;
        }

        public Criteria andRecordModifyNotIn(List<Integer> values) {
            addCriterion("record_modify not in", values, "recordModify");
            return (Criteria) this;
        }

        public Criteria andRecordModifyBetween(Integer value1, Integer value2) {
            addCriterion("record_modify between", value1, value2, "recordModify");
            return (Criteria) this;
        }

        public Criteria andRecordModifyNotBetween(Integer value1, Integer value2) {
            addCriterion("record_modify not between", value1, value2, "recordModify");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}